<template>
	<view class="page-content">
		<view class="page-title">基本使用</view><ui-br />
		<ui-code :code="code"></ui-code><ui-br />
		<view class="page-tips">空白页</view><ui-br />
		<ct-empty @click="clickBtn" type="name=Default" title="暂无易瘦体质方案" tips="吃出易瘦体质，免费定制易瘦体质养成方案。" btnText="立即定制" /><ui-br />
		<view class="page-title">属性说明</view><ui-br />
		<ui-table class="marginBottom20" :data="tableData" /><ui-br />
	</view>
</template>

<script>
	import code from './code.js'
	export default {
		data() {
			return {
				tableData: [{
						parameter: 'title',
						values: '-- (标题)'
					},
					{
						parameter: 'tips',
						values: '-- (副标题)'
					},
					// {
					// 	parameter: 'src',
					// 	values: '图片路径'
					// },
					{
						parameter: 'type',
						values: '内置图片名称'
					},
					{
						parameter: 'btnText',
						values: '-- (按钮文字)'
					},
					{
						parameter: '@click',
						values: '点击事件 (btnText不可为空)'
					},
				],
				src:require('@/static/ctgaba_ui/empty_icon/name=Address.png'),
				code:""
			}
		},
		created() {
			this.code = code
		},
		methods: {
			clickBtn() {
				uni.showToast({
					icon: 'none',
					title: '我是点击事件'
				})
			}
		}
	}
</script>

<style lang="scss" scoped>
</style>